{% load i18n %}
{% extends "base_generic.html" %}
{% block title %}Hexcolor{% endblock %}
{% block script %}
  <style type="text/css">
    body {
      background-color: #{{ color }};
    }
  </style>
{% endblock %}
{% block content %}
    <h1>Photos of color: <a href="/color/{{ color }}/">#{{ color }}</a></h1>

    {% if photos %}
      <h2>Photos</h2>
      {% for photo in photos %}
        <a href="{{ photo.1 }}" class="photoBox"><img src="{{ photo.0 }}" alt="" /></a>
      {% endfor %}
    {% endif %}

{% endblock %}
